tests: Use readdir64 when _FILE_OFFSET_BITS set
authorDan Nicholson <nicholson@endlessm.com>
Wed, 3 Jun 2015 19:34:37 +0000 (12:34 -0700)
committerColin Walters <walters@verbum.org>
Thu, 4 Jun 2015 22:56:31 +0000 (18:56 -0400)
commit2e0521804d26f0804f86fbba9d06884b82720cc8
tree151bf4cd02c09798531407fe560227d2db6645a2
parent7aa23d53cd14abf1e615c6ed70d613b3e151e109
tests: Use readdir64 when _FILE_OFFSET_BITS set

On 32 bit systems, _FILE_OFFSET_BITS will be set to 64 by
AC_SYS_LARGEFILE. This causes the glibc headers to use readdir64 rather
than readdir. Emulate that behavior in the preloader or the tests will
all fail with "No such file or directory".
tests/readdir-rand.c